import request from '@/utils/request'
export function virtual(data) { //虚拟人列表
    return request({
        url: '/virtual/v1/backVirtual/list',
        method: "post",
        data
    })
}
export function virtuallist(data) { //场景列表
    return request({
        url: '/virtual/v1/scene/list',
        method: "post",
        data
    })
}

export function virtuatimbrellist(data) { //场景列表
    return request({
        url: '/virtual/v1/timbre/list',
        method: "post",
        data
    })
}

export function pptinfo(data) { //请求ppt详情
    return request({
        url: '/virtual/v1/userPpt/info',
        method: "post",
        data
    })
}


export function userProlist(data) { //项目列表
    return request({
        url: '/virtual/v1/userPro/list',
        method: "post",
        data
    })
}

export function userProAdd(data) { //新建项目
    return request({
        url: '/virtual/v1/userPro/add',
        method: "post",
        data
    })
}

export function userProdelete(data) { //删除项目
    return request({
        url: '/virtual/v1/userPro/delete',
        method: "post",
        data
    })
}
//http://171.34.173.28:9201/static/uploadfile/virtual/project/项目ID/project.json
export function userProinfo(id) { //项目详情
    return request({
        url: `/virtual/v1/userPro/detail`,
        method: "post",
        data: {
            projectId: Number(id),
            original: 1
        }
    })
}

export function list(data) { //用户上传资源
    return request({
        url: `/virtual/v1/userResources/list`,
        method: "post",
        data
    })
}

export function texturelist(data) { //用户获取贴图/gif/动作
    return request({
        url: `/virtual/v1/texture/list`,
        method: "post",
        data
    })
}
export function textureinfo(data) { //用户获取贴图/gif/动作详情
    return request({
        url: `/virtual/v1/texture/info`,
        method: "post",
        data
    })
}

export function dellist(data) { //删除用户上传资源
    return request({
        url: `/virtual/v1/userResources/delete`,
        method: "post",
        data
    })
}

export function videoUpload(data) { //用户删除上传音频
    return request({
        url: `/virtual/v1/userPro/resUpload`,
        method: "post",
        data
    })
}
export function deletevideo(data) { //用户删除上传素材
    return request({
        url: `/virtual/v1/userResources/delProRes`,
        method: "post",
        data
    })
}
export function deletevideos(data) { //用户删除上传视频素材
    return request({
        url: `/virtual/v1/userPro/resDelete`,
        method: "post",
        data
    })
}
export async function textToVideo(data) { //批量文字转语音
    return await request({
        url: `/virtual/v1/video/textToVideo`,
        method: "post",
        data
    })
}

export function videoCompose(data) { //用户输入的语音转大语音合成
    return request({
        url: `/virtual/v1/userPro/videoCompose`,
        method: "post",
        data
    })
}

export function getVideo(data) { //用户输入的语音转大语音合成
    return request({
        url: `/virtual/v1/userPro/getVideo`,
        method: "post",
        data
    })
}

export function userProupdate(data) { //人物json提交修改||保存
    return request({
        url: '/virtual/v1/userPro/update?',
        method: "post",
        data
    })
}

export function composeCharacterMouth(data) { //人物嘴型提交合成
    return request({
        url: '/virtual/v1/userPro/composeCharacterMouth',
        method: "post",
        data
    })
}

export function getComposeCharacterMouth(data) { //人物嘴型获取轮询合成
    return request({
        url: '/virtual/v1/userPro/getComposeCharacterMouth',
        method: "post",
        data
    })
}

export function compose(data) { //用户作品视频合成状态变二为三
    return request({
        url: '/virtual/v1/userPro/composeProject',
        method: "post",
        data
    })
}

export function composeStatus(data) { //用户作品视频合成状态变二为三
    return request({
        url: '/virtual/v1/userPro/composeStatus',
        method: "post",
        data
    })
} 